<form id="a_form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <input  id="c-switch" name="ids" type="hidden" value="{$row.id}">
    <div class="form-group">
        <label class="control-label col-xs-1 col-sm-1">{:__('時間')}:</label>
        <div class="col-xs-3 col-sm-3">
            <input type="text" name="datetimerange" class="form-control datetimerange"  value="{$datetimerange}" />
        </div>

        <label class="control-label col-xs-1 col-sm-2">{:__('油箱')}:</label>
        <div class="col-xs-3 col-sm-3">
            <select class="form-control" name="commandtype">
                <option value="A" {if $commandtype == "A"}selected{/if}>循環過濾油箱</option>
                <option value="B" {if $commandtype == "B"}selected{/if}>第一集油箱</option>
            </select>
        </div>
        <div class="col-xs-2 col-sm-2">
            <a type="submit" id="dosearch" class="btn btn-success">搜索</a>
        </div>
    </div>

</form>

<div class="row">
    <div class="col-md-12 col-sm-12 col-xs-12">
        <div id="echart" style="height:500px;width:100%;"></div>
    </div>
</div>


<script>
    var WSdata = {
        datetimerange: {:json_encode($datetimerange)},
        mdlist1: {:json_encode(array_values($mdlist1))},
        mdlist2: {:json_encode(array_values($mdlist2))},
        mdlist3: {:json_encode(array_values($mdlist3))},
        mdlist4: {:json_encode(array_values($mdlist4))},
        mdlist5: {:json_encode(array_values($mdlist5))},
        mdlist6: {:json_encode(array_values($mdlist6))},
        mdXlist: {:json_encode(array_values($mdXlist))},
    };
</script>